package org.ktm.exception;

public class KTMApplicationException extends KTMException {

    private static final long serialVersionUID = 1L;

    /**
     * Construct the KgApplicationException
     */
    public KTMApplicationException() {
        super();
    }

    /**
     * Construct the KgApplicationException
     * 
     * @param key
     *            The key in the error resource file
     */
    public KTMApplicationException(String key) {
        super(key);
    }

    /**
     * Constructs the KgApplicationException.
     * 
     * @param key
     *            The key in the error resource file
     * @param arg
     *            a single string parameter for the error message
     */
    public KTMApplicationException(String key, String arg) {
        super(key, new String[] {
            arg
        });
    }

    /**
     * Constructs the KgApplicationException.
     * 
     * @param key
     *            The key in the error resource file
     * @param arg1
     *            a string parameter for the error message
     * @param arg2
     *            another string parameter for the error message
     */
    public KTMApplicationException(String key, String arg1, String arg2) {
        super(key, new String[] {
        arg1, arg2
        });
    }

    /**
     * Constructs the KgApplicationException.
     * 
     * @param key
     *            The key in the error resource file
     * @param args
     *            array of parameters for the error message
     */
    public KTMApplicationException(String key, Object[] args) {
        super(key, args);
    }

    /**
     * Constructs the KgApplicationException.
     * 
     * @param key
     *            The key in the error resource file
     * @param args
     *            array of parameters for the error message
     */
    public KTMApplicationException(String key, String[] args) {
        this(key, (Object[]) args);
    }
}
